# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-pathlib2
pkgver=2.3.6
pkgrel=1
pkgdesc="Fork of pathlib aiming to support the full stdlib Python API"
url="https://github.com/mcmtroffaes/pathlib2"
arch="noarch"
license="MIT"
depends="python3 py3-six"
makedepends="py3-setuptools"
source="pathlib2-$pkgver.tar.gz::https://github.com/mcmtroffaes/pathlib2/archive/$pkgver.tar.gz"
builddir="$srcdir/pathlib2-$pkgver"

replaces="py-pathlib2" # Backwards compatibility
provides="py-pathlib2=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
e806fb0e778040a7e23903c2394b43beeb4d92c8b758b092ddf27e35f63268798f97d57d07d4a57d95472773dbf0feb5e353daade14286b5578af7fd0e0f5663  pathlib2-2.3.6.tar.gz
"
